package Design_patterns.creator_mode.prototype.demo2;

/**
 * @description: 三好
 **/

public class Citation implements Cloneable {
    //三好学生名字
    private String name;

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }

    public void show(){
        System.out.println("同学："+name+"在2020学年第一学期中表现优秀，被评为三好学生，特发此状");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
